package com.ruoyi.info.service;

import java.io.IOException;
import java.util.List;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.exception.file.InvalidExtensionException;
import com.ruoyi.info.domain.CmsApp;
import com.ruoyi.util.security.Result;
import org.springframework.web.multipart.MultipartFile;

/**
 * appService接口
 * 
 * @author xwj
 * @date 2023-08-01
 */
public interface ICmsAppService 
{
    /**
     * 查询app
     * 
     * @param id app主键
     * @return app
     */
    public CmsApp selectCmsAppById(Long id);

    /**
     * 查询app列表
     * 
     * @param cmsApp app
     * @return app集合
     */
    public List<CmsApp> selectCmsAppList(CmsApp cmsApp);

    /**
     * 新增app
     * 
     * @param cmsApp app
     * @return 结果
     */
    public int insertCmsApp(CmsApp cmsApp);

    /**
     * 修改app
     * 
     * @param cmsApp app
     * @return 结果
     */
    public int updateCmsApp(CmsApp cmsApp);

    /**
     * 批量删除app
     * 
     * @param ids 需要删除的app主键集合
     * @return 结果
     */
    public int deleteCmsAppByIds(String ids);

    /**
     * 删除app信息
     * 
     * @param id app主键
     * @return 结果
     */
    public int deleteCmsAppById(Long id);

    Result uploadApp(SysUser currUser, MultipartFile file, String lx) throws IOException, InvalidExtensionException, Exception;

    CmsApp selectCmsAppByBatchId(String batchId);

    Result refreshRemote(CmsApp app);

    List<CmsApp> findNotSuccess();


    void getRemoteDetails(CmsApp app);
}
